--编写者：alt
--使用方法：直接粘贴到模组环境 修改msg的内容 修改astesia为角色prefab
local charactername = "astesia"
local uppername = string.upper(charactername)
local msg = {
    --[[  prefab = {
        status = {
            broken = {
                [charactername] = "好累......但是，还不能倒下......",
                generic = "或许需要一些手段来修复。",
            },
        },
        name = "星极",
        special_desc = "这是……另一个我？",
        desc = "昨晚的星空令人难忘。",
        recipe_desc = "星极",
    },
    prefab2 = {
        name = "星极",
        special_desc = "这是……另一个我？",
        desc = "昨晚的星空令人难忘。",
        recipe_desc = "星极",
    }, ]]
}
STRINGS.CHARACTERS[uppername] = STRINGS.CHARACTERS[uppername] or {}
STRINGS.CHARACTERS[uppername].DESCRIBE = STRINGS.CHARACTERS[uppername].DESCRIBE or {}
for k, v in pairs(msg) do
    if v.name then
        STRINGS.NAMES[string.upper(k)] = v.name
    end
    if v.desc then
        if v.status then
            STRINGS.CHARACTERS.GENERIC.DESCRIBE[string.upper(k)] =
                STRINGS.CHARACTERS.GENERIC.DESCRIBE[string.upper(k)] or {}
            STRINGS.CHARACTERS.GENERIC.DESCRIBE[string.upper(k)].GENERIC = v.desc
        else
            STRINGS.CHARACTERS.GENERIC.DESCRIBE[string.upper(k)] = v.desc
        end
    end
    if v.special_desc then
        if v.status then
            STRINGS.CHARACTERS[uppername].DESCRIBE[string.upper(k)] =
                STRINGS.CHARACTERS[uppername].DESCRIBE[string.upper(k)] or {}
            STRINGS.CHARACTERS[uppername].DESCRIBE[string.upper(k)].GENERIC = v.special_desc
        else
            STRINGS.CHARACTERS[uppername].DESCRIBE[string.upper(k)] = v.special_desc
        end
    end
    if v.recipe_desc then
        STRINGS.RECIPE_DESC[string.upper(k)] = v.recipe_desc
    end
    if v.status then
        for status, data in pairs(v.status) do
            for name, desc in pairs(data) do
                if STRINGS.CHARACTERS[string.upper(name)] then
                    STRINGS.CHARACTERS[string.upper(name)].DESCRIBE[string.upper(k)][string.upper(status)] = desc
                end
            end
        end
    end
end

--STRINGS.INFO_WHAT
STRINGS["INFO_" .. uppername] = {
    --STRINGS.INFO_WHAT.ACTIONS
    ACTIONS = {
    },
    --STRINGS.INFO_WHAT.DISH
    DISH = {
    },
    ANNOUNCE = {
    },
    UI_STRING = {
    },
}
